package org.apache.servicecomb.fence.resource;


import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import jakarta.persistence.EntityManager;
import jakarta.persistence.PersistenceContext;

@Service
public class StudentBzService {

  @PersistenceContext
  private EntityManager entityManager;

  @Transactional
  public Student findStudentById(Long id) {
    return entityManager.find(Student.class, id);
  }
}